<!DOCTYPE html>
<html lang="en">

	<include file="Public:header" />
	<include file="Public:page_css" />
	<script>
$(function(){
	$('#edit').ajaxForm({
		beforeSubmit: checkForm, // 此方法主要是提交前执行的方法，根据需要设置
		success: complete, // 这是提交后的方法
		dataType: 'json'
	});

	function checkForm(){
		if( '' == $.trim($('#cost').val())){
			layer.alert('回复信息不能为空', {icon: 5}, function(index){
 			layer.close(index);
			$('#username').focus();
			});
			return false;
		}


 }
	function complete(data){
		if(data.status==1){
			layer.msg(data.info, {icon: 6,time:1000}, function(index){
 			layer.close(index);
			window.location.href=data.url;
			});
		}else{
			layer.msg(data.info, {icon: 5,time:1000}, function(index){
 			layer.close(index);
			});
			return false;
		}
	}

});
</script>
	<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
		<include file="Public:nav" />
		<div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-12">
                <h2>订单回复</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="{:U('Index/index')}"><i class="fa fa-home"></i> 主页</a>
                    </li>
                    <li>
                        <a>订单管理</a>
                    </li>
                    <li>
                        <strong>订单回复</strong>
                    </li>
                </ol>
            </div>
        </div>
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>订单回复</h5>
						<div class="ibox-tools">
							<a class="collapse-link">
								<i class="fa fa-chevron-up"></i>
							</a>
						</div>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal" name="edit" id="edit" method="post" action="">
							<input type="hidden" name="id" id="replyid" value="{$list.id}" />
							<div class="form-group">
								<label class="col-sm-2 control-label">订单号</label>
								<div class="col-sm-5">
									<p>{$list.orderno}</p>
								</div>
							</div>
				            <div class="hr-line-dashed"></div>
				            <div class="form-group">
								<label class="col-sm-2 control-label">姓名</label>
								<div class="col-sm-5">
									<p>{$list.name}</p>
								</div>
							</div>
                            <div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">出发地</label>
								<div class="col-sm-5">
									<p>{$list.startadd}</p>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
                                <div class="form-group">
								<label class="col-sm-2 control-label">目的地</label>
								<div class="col-sm-5">
									<p>{$list.endadd}</p>
								</div>
							</div>
                            </div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">电话</label>
								<div class="col-sm-5">
									<p>{$list.mphone}</p>
								</div>
							</div>
                            <div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">订单报价</label>
								<div class="col-sm-5">
									<input type="text" name="cost" id="cost" value="{$list.cost}" placeholder="请输入订单报价" class="form-control" />
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">预计装载量</label>
								<div class="col-sm-5">
									<input type="text" name="load" id="load" value="{$list.load}" placeholder="请输入预计装载量" class="form-control" />
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">车辆配备</label>
								<div class="col-sm-5">
									<input type="text" name="equipment" id="equipment" value="{$list.equipment}" placeholder="请输入预计装载量" class="form-control" />
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">人员配备</label>
								<div class="col-sm-5">
									<input type="text" name="peaple" id="peaple" value="{$list.peaple}" placeholder="请输入人员配备" class="form-control" />
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">费用说明</label>
								<div class="col-sm-5">
								<textarea name="fee_explain" id="fee_explain" class="form-control" rows="3"></textarea>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<div class="col-sm-4 col-sm-offset-2">
									<button class="btn btn-primary" type="submit">提交信息</button>&nbsp;&nbsp;&nbsp;
									<a class="btn btn-danger" href="javascript:history.go(-1);">返回</a>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<include file="Public:footer" />
	<js file='__PUBLIC__/Admin/uploadify/jquery.uploadify.min.js' />
	<link rel="stylesheet" href="__PUBLIC__/Admin/uploadify/uploadify.css">
	</body>

</html>

<!-- 下拉CSS样式 -->
<script>

	/*$.post( "__CONTROLLER__/info", {
				sAdress:$("#startAdd").val(),
				eAdress:$("#endAdd").val(),
				car:$("#car").val(),
				dst:$('#dst').html(),
		    }, function(data, status) {
		    	 $("#cost").html(data);
		    	 $("#costInput").val(data);
		    });*/


    var config = {
        '.chosen-select': {},
    }
    for (var selector in config) {
        $(selector).chosen(config[selector]);
    }

</script>

<!-- IOS开关样式配置 -->
<script>
var elem = document.querySelector('.js-switch');
    var switchery = new Switchery(elem, {
        color: '#1AB394'
    });
var config = {
    '.chosen-select': {},
}
for (var selector in config) {
    $(selector).chosen(config[selector]);
}

</script>



	</body>
</html>
